from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
# router.register(r"test", views.TestViewSet, basename="00测试视图")

router.register(
    r"ReportWorkList", views.AllinpayReportWorkListViewSet, basename="10工作项统计报表"
)
router.register(
    r"ReportInterList", views.AllinpayReportInterListViewSet, basename="11积分统计报表"
)
router.register(
    r"ReportWorkListV2",
    views.NewV2AllinpayReportWorkListViewSet,
    basename="12工作项统计报表(异步)",
)
router.register(
    r"ReportInterListV2",
    views.NewV2AllinpayReportInterListViewSet,
    basename="13积分统计报表(异步)",
)


router.register(r"GroupList", views.FsygWorksGroupsListViewSet, basename="20凡商终端分组")
router.register(r"WorksList", views.FsygPchardListViewSet, basename="21凡商终端列表")
router.register(r"ReqsnList", views.FsygShopreqsnListViewSet, basename="22凡商商品订单")
router.register(r"MemberList", views.FsygMemberListViewSet, basename="23凡商会员列表")


router.register(r"ReportSale", views.ReportTermLimitViewSet, basename="30商品销售同比")

urlpatterns = [
    path("", include(router.urls)),
]
